package com.cxm.helper.service;

import com.cxm.helper.pojo.Config;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cxm.helper.pojo.dto.ConfigSaveDTO;
import com.cxm.helper.pojo.vo.ConfigVO;

import java.util.List;

/**
* @author chenximeng
* @description 针对表【config】的数据库操作Service
* @createDate 2022-11-20 09:25:37
*/
public interface ConfigService extends IService<Config> {

    List<String> add(ConfigSaveDTO configDTO);

    List<ConfigVO> listConfigAndChildren();

    List<String> update(ConfigSaveDTO config);

    void deepDeleteByParentId(Long id);

    void deleteChildrenByParentId(Long id);

    Config getByConfigName(String configName);

    List<Config> getByConfigNames(List<String> configName);

    List<Config> listChildByParentConfigName(String configName);

    List<Config> listChildByParentId(Long parentId);
}
